﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace NPC模块结构
{
    class BlackSmithType:NPC
    {
        private string _function;
        public BlackSmithType(string name,NPCType type ,string function) : base(name,type)
        {
            this.Function = function;
        }

        public string Function { get => _function; set => _function = value; }

        public override void Speak()
        {
            Console.WriteLine("类型{0}，{1}，功能{2}", base.NPCType, base.Name, this.Function);
        }
    }
}
